package com.ruoyi.kong.service;

import com.ruoyi.kong.entity.KongEntity;
import com.ruoyi.kong.entity.KongTarget;
import com.ruoyi.kong.entity.KongUpstream;
import com.ruoyi.kong.entity.KongUpstreamVo;

public interface IKongUpstreamService {

    KongEntity<KongUpstream> upstreams();

    KongUpstream addUpstream(KongUpstreamVo kongUpstream);

    KongUpstream updateUpstream(String upstreamId, KongUpstreamVo kongUpstream);

    void deleteUpstream(String upstreamId);

    KongUpstream upstreamsById(String id);

    KongEntity<KongTarget> targetsByUpstreamId(String upstreamId);

    KongTarget addTarget(String upstreamId,KongTarget target);

    KongTarget deleteTarget(String upstreamId,String id);
}
